package com.itheima.controller;

import com.itheima.service.ConsumerService;
import org.apache.servicecomb.provider.rest.common.RestSchema;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;


@RestSchema(schemaId = "ConsumerController")
@RequestMapping("/consumer")
public class ConsumerController {

    @Autowired
    private ConsumerService consumerService;

    @GetMapping("/hello")
    public String sayRest(String name){
        return consumerService.sayRest(name);
    }
}